<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8">
		<title>凯盛项目管理系统</title>
		<link href="static/bootstrap/css/bootstrap.min.css" type="text/css" rel="stylesheet">
	</head>
	<body class="body">
		<%@ include file="top.jsp"%>
		<div class="container"style="padding-top:60px">
			<div class="row">
				<jsp:include page="left.jsp">
					<jsp:param value="contact" name="tag"/>
				</jsp:include>
				<div class="span9">
					<form method="post" action="contact.jspx?m=edit" class="form-horizontal">
						<fieldset>
							<legend>修改联系人</legend>
							<input type="hidden" name="id" value="${requestScope.contact.id }" />
							<div class="control-group">
								<label class="control-label" for="input01">姓名</label>
								<div class="controls">
									<input id="input01" value="${requestScope.contact.name }" name="name" class="span5" type="text" x-webkit-speech="undefined">
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="input01">公司</label>
								<div class="controls">
									<input id="input01" name="company" value="${requestScope.contact.company }" class="span5" type="text" x-webkit-speech="undefined">
								</div>
							</div>
							<div class="line"></div>
							<div class="control-group">
								<label class="control-label" for="input01">手机</label>
								<div class="controls">
									<input id="input01" name="telephone" value="${requestScope.contact.telephone }" class="span5" type="text" x-webkit-speech="undefined">
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="input01">固话</label>
								<div class="controls">
									<input id="input01" name="phone"  value="${requestScope.contact.phone }" class="span5" type="text" x-webkit-speech="undefined">
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="input01">邮箱</label>
								<div class="controls">
									<input id="input01" name="email" value="${requestScope.contact.email }" class="span5" type="text" x-webkit-speech="undefined">
								</div>
							</div>
							<div class="line"></div>
							<div class="control-group">
								<label class="control-label" for="input01">地址</label>
								<div class="controls">
									<input id="input01" name="address" value="${requestScope.contact.address }" class="span5" type="text" x-webkit-speech="undefined">
								</div>
							</div>
							<div class="line"></div>
							<div class="control-group">
								<label class="control-label" for="input01">主页</label>
								<div class="controls">
									<input id="input01" name="index" value="${requestScope.contact.index }" class="span5" type="text" value="">
									<p class="help-block">www.xxx.com</p>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="input01">微博</label>
								<div class="controls">
									<select class="span2" name="microbolg">
 									<c:choose>
										<c:when test="${requestScope.contact.bolgType == 'sina' }">
											<option value="sina" selected="selected">新浪微博</option>
										</c:when>
										<c:when test="${requestScoope.contact.bolgType != 'sina'}">
											<option value="sina">新浪微博</option>
										</c:when>
									</c:choose> 
									<c:choose>
										<c:when test="${requestScope.contact.bolgType == 'qq' }">
											<option value="qq" selected="selected">腾讯微博</option>
										</c:when>
										<c:when test="${requestScoope.contact.bolgType != 'qq'}">
											<option value="qq">腾讯微博</option>
										</c:when>
									</c:choose>
									<c:choose>
										<c:when test="${requestScope.contact.bolgType == 'twitter' }">
											<option value="twitter" selected="selected">Twitter</option>
										</c:when>
										<c:when test="${requestScoope.contact.bolgType != 'twitter'}">
											<option value="twitter">Twitter</option>
										</c:when>
									</c:choose>  
									</select><div class="input-prepend">
										<span class="add-on">@</span><input id="prependedInput" name="username" value="${requestScope.contact.username}" class="span2" type="text" x-webkit-speech="undefined" size="16">
									</div>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="input01">简介</label>
								<div class="controls">
									<textarea name="describe" class="span5" rows="6">${requestScope.contact.describe}</textarea>
								</div>
							</div>
							<div class="form-actions">
								<button class="btn btn-primary" type="submit">保存</button>
								<button class="btn" onclick="location.back()">返回</button>
							</div>
						</fieldset>
					</form>
				</div>
				<div class="span3"> </div>
			</div>
		</div>
	</body>
</html>